﻿<%@ Control language="C#" Inherits="ChangeOwnership.Viewtm_ChangeOwnership" CodeFile="Viewtm_ChangeOwnership.ascx.cs" AutoEventWireup="true"%>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
    <tr>
        <td align="center" colspan="3">
            <asp:Panel ID="pnlChangeOwner" runat="server" Width="100%">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                    <tr>
                        <td style="width: 20%">
                        </td>
                        <td style="width: 12%;">
                            <asp:Label ID="Label2" runat="server" CssClass="titletext3" Text="Từ tài khoản"></asp:Label></td>
                        <td>
                            <asp:TextBox ID="txtFromAccount" runat="server" Width="100px"></asp:TextBox><asp:Button ID="btnFindFromOwner" runat="server" CssClass="btn" OnClick="btnFindFromOwner_Click"
                            Text="Tìm" Width="50px" /></td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td style="width: 100%;">
                            <asp:TextBox ID="txtFromAccountDesc" runat="server" Enabled="False" Width="100%" BorderStyle="Solid"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Label ID="Label7" runat="server" CssClass="titletext3" Text="Chuyển đến"></asp:Label></td>
                        <td style="width: 100%;">
                            <asp:TextBox ID="txtToAccount" runat="server" Width="100px"></asp:TextBox><asp:Button ID="btnFindToOwner" runat="server" CssClass="btn" OnClick="btnFindToOwner_Click"
                            Text="Tìm" Width="50px" /></td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:TextBox ID="txtToAccountDesc" runat="server" Enabled="False" Width="100%" BorderStyle="Solid"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Label ID="lblIsSearchFromOwner" runat="server" CssClass="titletext3" Text="-1"
                                Visible="False"></asp:Label></td>
                        <td>
                            <asp:Button ID="btnProductList" runat="server" CssClass="btn" OnClick="btnProductList_Click"
                            Text="Danh sách" Width="110px" /></td>
                    </tr>
                    <tr>
                        <td class="table" colspan="3">
                            &nbsp;</td>
                    </tr>
                </table>
            </asp:Panel>
        </td>
    </tr>
    <tr>
        <td align="center" colspan="3" >
            <asp:Panel ID="pnlSearch" runat="server" Width="100%" Visible="False">
            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                <tr>
                    <td style="width: 20%">
                    </td>
                    <td width="12%">
                    </td>
                    <td>
                        <asp:Label ID="Label8" runat="server" CssClass="titletext2" Text="TÌM TÀI KHOẢN"></asp:Label></td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Label ID="Label4" runat="server" CssClass="titletext3" Text="Tài khoản :"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtAccount" runat="server" Width="121px"></asp:TextBox>
                        </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Label ID="Label5" runat="server" CssClass="titletext3" Text="Họ và tên :"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtName" runat="server" Width="315px"></asp:TextBox>
                        <asp:CheckBox ID="cbxFindEachWordInUserName" runat="server" Text="Tìm từng từ" /></td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Label ID="Label3" runat="server" CssClass="titletext3" Text="Công ty:"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtCompany" runat="server" Width="315px"></asp:TextBox>
                        <asp:CheckBox ID="cbxFindEachWordInCompany" runat="server" Text="Tìm từng từ" /></td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Label ID="Label6" runat="server" CssClass="titletext3" Text="E-mail :"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server" Width="315px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                        </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnDoSearch" runat="server" CssClass="btn" OnClick="btnDoSearch_Click"
                            Text="Tìm " Width="74px" />&nbsp;<asp:Button ID="btnCloseSearch" runat="server" CssClass="btn" OnClick="btnCloseSearch_Click"
                            Text="Đóng" Width="68px" /></td>
                </tr>
                <tr>
                    <td class="table" colspan="3">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td colspan="1" style="width: 92px">
                    </td>
                    <td colspan="2">
                        <asp:Label ID="lblTotalUserFound" runat="server" CssClass="titletext3"></asp:Label></td>
                </tr>
                <tr>
                    <td colspan="1" style="width: 92px">
                    </td>
                    <td colspan="2">
                        <asp:GridView ID="gvUserList" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
                            CssClass="table" Width="100%" OnPageIndexChanging="gvUserList_PageIndexChanging" Visible="False">
                            <PagerSettings Mode="NumericFirstLast" />
                            <Columns>
                                <asp:TemplateField>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                    <input type="radio" value='<%#Eval("userId") %>' name="raSelectUser" />
                                        
                                        <asp:Label ID="lblUserId" runat="server" Text='<%# Eval("userId") %>' Visible="False"></asp:Label>&nbsp;
                                    </ItemTemplate>
                                    <ItemStyle Width="30px" HorizontalAlign="Center" VerticalAlign="Top" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Đơn vị">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("name") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:HyperLink ID="hlpName1" runat="server" NavigateUrl='<%# GetUserURL(Eval("userId").ToString()) %>' Text='<%# Eval("name") %>'></asp:HyperLink>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerStyle HorizontalAlign="Right" VerticalAlign="Top" />
                        </asp:GridView><asp:Button ID="btnSelectUser" runat="server" CssClass="btn" OnClick="btnSelectUser_Click"
                            Text="Chọn" Width="80px" Visible="False" /></td>
                </tr>
            </table>
            </asp:Panel>
        </td>
    </tr>
    <tr>
        <td colspan="3" rowspan="2">
            <asp:Panel ID="pnlProductList" runat="server" Visible="False" Width="100%">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                    <tr>
                        <td width="45%">
                            <asp:Label ID="lblFrAccountList" runat="server" CssClass="titletext3">Chào bán sở hữu</asp:Label></td>
                        <td width="4%">
                            &nbsp;</td>
                        <td>
                            <asp:Label ID="lblToAccountList" runat="server" CssClass="titletext3">Chào bán chuyển sở hữu</asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 517px">
            <asp:ListBox ID="lbLeftList" runat="server" Height="200px" SelectionMode="Multiple"
                Width="100%" Visible="True"></asp:ListBox></td>
                        <td align="center" valign="middle">
            <asp:LinkButton ID="btnAdd" runat="server" OnClick="btnAdd_Click" Visible="True">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/images/ffwd.gif" />
            </asp:LinkButton>
                            <br />
                            <br />
            <asp:LinkButton ID="btnRemove" runat="server" OnClick="btnRemove_Click" Visible="True">
                <asp:Image ID="Image2" runat="server" ImageUrl="~/images/frev.gif" />
            </asp:LinkButton></td>
                        <td>
            <asp:ListBox ID="lbRightList" runat="server" Height="200px" SelectionMode="Multiple"
                Width="100%" Visible="True"></asp:ListBox></td>
                    </tr>
                    <tr>
                        <td style="height: 24px">
                        </td>
                        <td style="height: 24px">
                        </td>
                        <td style="height: 24px">
            <asp:Button ID="btnUpdate" runat="server" Text="Lưu " Width="74px" OnClick="btnUpdate_Click" CssClass="btn" Visible="True" />
                            <asp:Button ID="btnCloseProdList" runat="server" Text="Đóng" Width="74px" OnClick="btnCloseProdList_Click" CssClass="btn" Visible="True" /></td>
                    </tr>
                </table>
            </asp:Panel>
            <br />
            </td>
    </tr>
    <tr>
    </tr>
    <tr>
        <td align="center" colspan="3" rowspan="1">
            <asp:Label ID="lblMessage" runat="server" CssClass="titletext3"></asp:Label></td>
    </tr>
</table>
<asp:Label ID="lblDebugMessage" runat="server"></asp:Label>
